﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.Account;
using Model.Helpers;
using Model.Entities.Ranking;
using System.ComponentModel.DataAnnotations;

namespace Model.Entities
{
    public class Contract
    {
        [Key]
        public int ContractID { get; set; }
        public User Owner { get; set; }
        public User Renter { get; set; }
        public ContractStatus ContractStatus { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public Distance EstimatedDistance { get; set; }
        public Distance MaxDistanceAllowed { get; set; }
        public Distance TraveledDistance { get; set; }
        public OwnerRankingValuation OwnerRankingValuation { get; set; }
        public RenterRankingValuation RenterRankingValuation { get; set; }
        public ICollection<Comment> Comments { get; set; }

        public void prueba() { }
    }
}
